package com.server;

import com.domain.Discuss;
import com.domain.Label;

import java.util.List;

public interface LabelService {

     Label selectLabelById(int id);

     List<Label> findAllLabel();

     int addLabel(Label label);

     int selectLabelIdByName(String name);

     List<Label> selectLabelByLikeName(String name);

     List<Discuss> selectDiscussByLikeLabelName(String name);

     List<Label> selectLabelByDiscussId(Integer discuss_id);

     //通过资源id，查询所选标签：
     List<Label> selectLabelByResourceId(Integer resource_id);

     int findLastLabelId();


}
